package com.stock.api.dto.stock;

import java.io.Serializable;

/**
 * Created by zhangfeng on 15/9/9.
 */
public class StockModel implements Serializable{

    /**
     * 返回错误码
     */
    private String errNum;
    /**
     * 返回错误信息
     */
    private String errMsg;
    /**
     * 收盘信息
     */
    private RetData retData;

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getErrNum() {
        return errNum;
    }

    public void setErrNum(String errNum) {
        this.errNum = errNum;
    }

    public RetData getRetData() {
        return retData;
    }

    public void setRetData(RetData retData) {
        this.retData = retData;
    }


    public class RetData implements Serializable{
        private static final long serialVersionUID = 1L;
        /***
         * 股票信息
         */
        private StockInfo[] stockinfo;
        /***
         * 大盘信息
         */
//        private MarketInfo marketInfo;
//        /***
//         * K线图
//         */
//        private Klinegraph klinegraph;

//        public Klinegraph getKlinegraph() {
//            return klinegraph;
//        }
//
//        public void setKlinegraph(Klinegraph klinegraph) {
//            this.klinegraph = klinegraph;
//        }
//
//        public MarketInfo getMarketInfo() {
//            return marketInfo;
//        }
//
//        public void setMarketInfo(MarketInfo marketInfo) {
//            this.marketInfo = marketInfo;
//        }

        public StockInfo[] getStockinfo() {
            return stockinfo;
        }

        public void setStockinfo(StockInfo[] stockinfo) {
            this.stockinfo = stockinfo;
        }
    }


    /**
     * 大盘信息
     */
    class MarketInfo implements Serializable{
        private static final long serialVersionUID = 1L;
    }

    /**
     * K线图
     */
    class Klinegraph implements Serializable{
        private static final long serialVersionUID = 1L;
    }


}
